package exception;

/**
 * Created by 5406160@qq.com on LiBoWen 李博闻.
 *
 * @ClassName : ExceptionDemo6
 * @Author : 54061
 * @Date: 2022/2/11 18:59
 */
public class ExceptionDemo6 {
    public static void main(String[] args) {
        System.out.println("开始");

        try{
            System.out.println(8 / 1);//数学异常: 运行时期异常
            //return;
            System.exit(0);
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            //一定会执行的代码
            System.out.println("你看我执行吗?");
            //System.out.println(num);
        }
        System.out.println("结束");
    }
}
